package com.aji.wineserver.controller;

import com.aji.winecommon.result.Result;
import com.aji.wineserver.service.ClassService;
import com.aji.wineserver.service.IdentificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 82527
 */
@RestController
@RequestMapping("/class")
@Slf4j
@Api(tags = "分类接口")
public class ClassController {
    @Autowired
    private ClassService classService;
    @GetMapping("/list")
    @ApiOperation("查询 所有分类")
    public Result list(){
        return Result.success(classService.list(null));
    }
}
